const PAGE_PATH = '/pages/index/index'

describe('pages.json', () => {
	if (!process.env.uniTestPlatformInfo.startsWith('android')) {
		it('not android', async () => {
			expect(1).toBe(1)
		})
		return
	}
	let page
	beforeAll(async () => {
		page = await program.reLaunch(PAGE_PATH)
		await page.waitFor(500)
	})
	it('globalStyle backgroundColor & backgroundColorContent', async () => {
		await program.adbCommand('input swipe 100 300 100 1200 100')
		await page.waitFor(110)
		const image = await program.screenshot()
		expect(image).toSaveImageSnapshot()
	})
})